package com.ktjy.ch15.service;

import com.ktjy.ch15.entity.Supplier;
import com.ktjy.ch15.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierService {

    public List<Supplier> findAll() ;

    public Page<Supplier> findPage(Supplier supplier, Integer pageNo, Integer pageSize);

    public boolean save(Supplier supplier);

    public Supplier findById(Long id);

    public boolean update(Supplier supplier);

    public boolean delete(Long id);

    public Supplier findBySupCode(@Param("supCode") String supCode);
}
